Content

public final class Content


Represents content sent to and received from the model.

See also
content

Summary

Nested types

public final class Content.Builder

Builder class to facilitate constructing complex Content objects.

Public fields

final @NonNull List<@NonNull Part>

ordered list of Part that constitute a single message.

final String

the producer of the content.

Public constructors

Content(String role, @NonNull List<@NonNull Part> parts)

Public fields

parts

public final @NonNull List<@NonNull Partparts

ordered list of Part that constitute a single message.

role

public final String role

the producer of the content. By default, it's "user".

Public constructors

Content

public Content(String role, @NonNull List<@NonNull Part> parts)
Parameters
String role

the producer of the content. By default, it's "user".

@NonNull List<@NonNull Part> parts

ordered list of Part that constitute a single message.